//
//  ViewController.m
//  UICustomTextAlertView
//
//  Created by apple on 2018/2/7.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "ViewController.h"
#import "UICustomTextAlertView.h"


@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

}

- (IBAction)oneButtonContentClick:(UIButton *)sender {
    UICustomTextAlertView *alter = [[UICustomTextAlertView alloc]initWithTitle:@"设置标题" message:nil delegate:nil buttonTitles:@"第一个",nil];
    [alter show];
}
- (IBAction)twoButtonContentClick:(UIButton *)sender {
    UICustomTextAlertView *alter = [[UICustomTextAlertView alloc]initWithTitle:@"设置标题" message:nil delegate:nil buttonTitles:@"第一个",@"第二个",nil];
    [alter show];
}
- (IBAction)threeButtonContentClick:(UIButton *)sender {
    UICustomTextAlertView *alter = [[UICustomTextAlertView alloc]initWithTitle:@"设置标题" message:nil delegate:nil buttonTitles:@"第一个",@"第二个",@"第三个",nil];
    [alter show];
}
- (IBAction)threeButtonClick:(UIButton *)sender {
    UICustomTextAlertView *alter = [[UICustomTextAlertView alloc]initWithTitle:@"设置标题" message:@"文字自动适应" delegate:nil buttonTitles:@"第一个",@"第二个",@"第三个",nil];
    [alter show];
}
- (IBAction)twoButtonClick:(UIButton *)sender {
    UICustomTextAlertView *alter = [[UICustomTextAlertView alloc]initWithTitle:@"设置标题" message:@"文字自动适应文字自动适应文字自动适应文字自动适应文字自动适应文字自动适应文字动适应文字自动适应文字自动适应文字自动适应文字自动适应" delegate:nil buttonTitles:@"第一个按钮",@"第二个按钮",nil];
    [alter show];
}
- (IBAction)signeButtonClick:(UIButton *)sender {
    UICustomTextAlertView *alter = [[UICustomTextAlertView alloc]initWithTitle:@"设置标题" message:@"文字自动适应文字自动适应文字自动适应文字自动适应文字自动适应文字自动适应文字自动适应文字自动适应文字自动适应文字自动适应文字自动适应文字自动适应文字自动适应文字自动适应文字自动适应文字自动适应文字自动适应文字自动适应文字自动适应" delegate:nil buttonTitles:@"只有一个",nil];
    [alter show];
}

@end
